import request from "@/utils/request";


export function consultationList(query) {
  return request({
    url: "/system/consultation/list",
    method: "get",
    params: query
  });
}


export function diseaseQuestionnaireList(visitId) {
  return request({
    url: "/system/consultation/disease/questionnaire/" + visitId,
    method: "get",
  });
}


// 新增方案
export function savePlan(data) {
  return request({
    url: "/system/consultation/addAll",
    method: "post",
    data: data,
  });
}


//修改前查询
export function consultationEdit(visitNum) {
  return request({
    url: "/system/consultation/edit/" + visitNum,
    method: "get",
  });
}

// 修改方案
export function updatePlan(data) {
  return request({
    url: "/system/consultation/editSave",
    method: "put",
    data: data,
  });
}

// 咨询医生列表
export function consultationerList() {
  return request({
    url: "/system/consultation/dropdown/list",
    method: "get",
  });
}
// 待咨询列表
export function consultationWait(query) {
  return request({
    url: "/system/consultation/consultation/wait",
    method: "get",
    params: query
  });
}
// 我的录入列表
export function consultationDetail(query) {
  return request({
    url: "/system/consultation/consultation/detail",
    method: "get",
    params: query
  });
}
//我的录入明细
export function myConsultation(query) {
  return request({
    url: "/system/consultation/myConsultation",
    method: "get",
    params: query
  });
}
// 我的咨询列表
export function consultationDetailInfo(query) {
  return request({
    url: "/system/consultation/consultation/detail/info",
    method: "get",
    params: query
  });
}
//我的咨询明细
export function myConsultationInfo(query) {
  return request({
    url: "/system/consultation/myConsultation/info",
    method: "get",
    params: query
  });
}
